package com.example.unisys.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.unisys.entity.Examination;
import com.example.unisys.form.ExaminationForm;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

@Repository
public interface ExamMapper extends BaseMapper<Examination> {
    int getExamSum();

//    int deleteByPrimaryKey(Integer examination_id);
//
//    int insert(Examination examination);
//
//    int insertSelective(Examination examination);
//
//    Examination selectByPrimaryKey(Integer examination_id);
//
//    int updateByPrimaryKeySelective(Examination examination);
//
//    int updateByPrimaryKey(Examination examination);

    List<ExaminationForm> getAllExams(HashMap<String, Object> hs);

    int deleteExam(HashMap<String, Object> hs);

    Examination getExamById(HashMap<String, Object> hs);

    List<Examination> selectByCourseid(@Param("course_id")String course_id);

    Examination getExamByTypeId(HashMap<String, Object> hs);
}